<template>
    <div>
        <p>{{ receivedMsg }}</p>
    </div>
    </template>
    <script>
export default{
    data(){
        return{
            receivedMsg:'',
        };
    },
    methods:{
        receiveMessage(message){
            this.receivedMsg = message;
        }
    }
};
</script>